package com.project.fortuneteller.exception;

public class UserBusinessException  extends RuntimeException implements IError {

    protected String statusCode;
    protected String errorCode;
    protected String message;

    public UserBusinessException(IError error) {
        this.statusCode = error.getStatusCode();
        this.errorCode = error.getErrorCode();
        this.message = error.getMessage();
    }


    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }

    @Override
    public String getStatusCode() {
        return statusCode;
    }
}
